package com.tuanzi.loan.business.service.credit.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.retry.RetryException;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tuanzi.loan.business.repository.credit.custom.LoanCreditOrderStatCustomRepository;
import com.tuanzi.loan.business.service.credit.LoanCreditOrderStatService;
import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.credit.LoanCreditOrderStatRequest;
import com.tuanzi.loan.vo.response.credit.LoanCreditOrderStatResponse;

@Debug
@Service
@Transactional
@Retryable(value = { RetryException.class })
public class LoanCreditOrderStatServiceImpl implements LoanCreditOrderStatService{
	
	@Autowired
	private LoanCreditOrderStatCustomRepository loanCreditOrderStatCustomRepository;

	@Override
	public Page<LoanCreditOrderStatResponse> list(
			PageSearcher<LoanCreditOrderStatRequest> pageSearcher) {
		return loanCreditOrderStatCustomRepository.list(pageSearcher.getSearchCondition(), pageSearcher.getPageable());
	}

}
